home *** CD-ROM | disk | FTP | other *** search
- <comment> Property window for Scenes. </comment>
-
- <base registry="Dialog\Scene">
- <body bgcolor="normal" text="#000000">
- <div valign=middle>
-
- <script language="EasyScript">
-
- //////////////////////
- function GetShowList ()
- {
- show_elements = new Array;
- show_flags = new Array;
-
- movie = object.getProject();
- for (n=0; n< movie.count; n++){
- if (!movie[n].isSound()){
- var state = (object.show_array.findString(movie[n].getProjectLink()) != -1);
- show_elements.add (movie[n]);
- show_flags.add (state);}}
-
- var buffer = "<table cellspacing=3 cellpadding=0>";
- for (n=0; n< show_elements.count; n++){
- buffer += "<tr><td>";
- if (n == show_elements.count - 1) buffer += "<tree type=L height=26>";
- else buffer += "<tree type=T height=26>";
- buffer += "<input type=checkbox name='show_flags[" + n + "]' onChange='UpdateShowList()'><spacer width=4>";
- buffer += "<img src='images/small_" + show_elements[n].getIconName() + ".bitmap'>";
- buffer += "<td>";
- buffer += show_elements[n].name;
- buffer += "<spacer><spacer>";}
-
- buffer += "</table>";
- return buffer;
- }
- /////////////////////////
- function UpdateShowList ()
- {
- object.show_array.clear ();
- for (n=0; n< show_flags.count; n++){
- if (show_flags[n]) object.show_array.add (show_elements[n].getProjectLink());}
- object.changed();
- }
- //////////////////////
- function GetHideList ()
- {
- hide_elements = new Array;
- hide_flags = new Array;
-
- movie = object.getProject();
- for (n=0; n< movie.count; n++){
- if (!movie[n].isSound()){
- var state = (object.hide_array.findString(movie[n].getProjectLink()) != -1);
- hide_elements.add (movie[n]);
- hide_flags.add (state);}}
-
- var buffer = "<table cellspacing=3 cellpadding=0>";
- for (n=0; n< hide_elements.count; n++){
- buffer += "<tr><td>";
- if (n == hide_elements.count - 1) buffer += "<tree type=L height=26>";
- else buffer += "<tree type=T height=26>";
- buffer += "<input type=checkbox name='hide_flags[" + n + "]' onChange='UpdateHideList()'><spacer width=4>";
- buffer += "<img src='images/small_" + hide_elements[n].getIconName() + ".bitmap'>";
- buffer += "<td>";
- buffer += hide_elements[n].name;
- buffer += "<spacer><spacer>";}
-
- buffer += "</table>";
- return buffer;
- }
- /////////////////////////
- function UpdateHideList ()
- {
- object.hide_array.clear ();
- for (n=0; n< hide_flags.count; n++){
- if (hide_flags[n]) object.hide_array.add (hide_elements[n].getProjectLink());}
- object.changed();
- }
- ///////////////////////////
- function GetPlaySoundList ()
- {
- play_sound_elements = new Array;
- play_sound_flags = new Array;
-
- movie = object.getProject();
- for (n=0; n< movie.count; n++){
- if (movie[n].isSound()){
- var state = (object.play_sound_array.findString(movie[n].getProjectLink()) != -1);
- play_sound_elements.add (movie[n]);
- play_sound_flags.add (state);}}
-
- var buffer = "<table cellspacing=3 cellpadding=0>";
- for (n=0; n< play_sound_elements.count; n++){
- buffer += "<tr><td>";
- if (n == play_sound_elements.count - 1) buffer += "<tree type=L height=26>";
- else buffer += "<tree type=T height=26>";
- buffer += "<input type=checkbox name='play_sound_flags[" + n + "]' onChange='UpdatePlaySoundList()'><spacer width=4>";
- buffer += "<img src='images/small_" + play_sound_elements[n].getIconName() + ".bitmap'>";
- buffer += "<td>";
- buffer += play_sound_elements[n].name;
- buffer += "<spacer><spacer>";}
-
- buffer += "</table>";
- return buffer;
- }
- //////////////////////////////
- function UpdatePlaySoundList ()
- {
- object.play_sound_array.clear ();
- for (n=0; n< play_sound_flags.count; n++){
- if (play_sound_flags[n]) object.play_sound_array.add (play_sound_elements[n].getProjectLink());}
- object.changed();
- }
-
- </script>
-
- <table width="100%" cellspacing=4 cellpadding=0 bgcolor="light" borderstyle="raised">
- <tr><td>
- <table width="100%"><tr>
- <td valign=top><img src="images/large_scene.bitmap">
- <td><font size=5>Scene</font>
- <input type="text" size=16 name="object.name">
- <td width=exact>
- <img checkbutton src="images/large_dialog_help.bitmap" name="object.flags.help" title="Option help" onClick="window.reparse()">
- </table>
- </table>
-
- <p>
-
- <spacer><input type="checkbox" name="object.stop_all_sound">Stop all sound<br>
-
- <p>
-
- <groupbox caption="Hide these elements">
- <include value="GetHideList()">
- </groupbox>
-
- <spacer height=8>
-
- <groupbox caption="Show these elements">
- <include value="GetShowList()">
- </groupbox>
-
- <spacer height=8>
-
- <groupbox caption="Play these sounds">
- <include value="GetPlaySoundList()">
- </groupbox>
-
- <spacer height=4>
-
- <table width="100%" cellspacing=0 cellpadding=12>
- <tr><td>
-
- <include value="explore('object')">
-
- </table>
-